<div id ="block"></div>
<?php include_partial("gestionagua/menuagua") ?>
<div id="sf_admin_container" style="width: 100%;height: 100%">
<div style = "display: table;  width:100%;">
 <h1>PERIODOS</h1>
<div >
    <a  align="left" href="<?php echo url_for('periodo/validar') ?>">   
      <img  src="/images/botonagregar.jpg" width="69" height="22" border="1"/>
  </a>
<?php if ($sf_user->hasFlash('notice')): ?>
  <div  class="errorLogin""><?php echo $sf_user->getFlash('notice') ?></div>
<?php endif; ?>
 
<?php if ($sf_user->hasFlash('error')): ?>
  <div  class="errorLogin"><?php echo $sf_user->getFlash('error') ?></div>
<?php endif; ?>
</div>

 
 <div style="float:left;width: 78%;margin-top:0px;">
   <div id="listadoPeriodos">
                <?php
                if (count($periodos) != 0) {
                    include_partial("periodo/listadoperiodos", array("periodos" => $periodos));
                }
                ?>
            </div>
            <br>
            
   </div>
 <div id="sf_admin_filter"style = "float: right; height: 75px; width:21%">
           <?php
            echo jq_form_remote_tag(array(
                'update' => 'listadoPeriodos',
                'url' => 'periodo/buscarPeriodos',
                'loading' => "$('#loadingPeriodos').css('display', '')",
                'complete' => "$('#loadingPeriodos').css('display', 'none')"
            ))
            ?>
           <table >
                <thead><tr><th colspan="2"><span style="float:left">FILTRO</span></th></tr></thead>
                <tbody id="filtros" >
                <tr>
                    <td >
                        <label for="calle"><b>Nombre</b></label>
                    </td>
                    <td >
                        <input id="nombre" name="nombre" style="text-transform:uppercase;" onkeyup="javascript:this.value=this.value.toUpperCase();">  
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2">
                        <input type="submit" style="float:right" value="Filtrar">
                        <span id="loadingConceptos" style="float:right;margin-right:10px;display: none;">
                            <img src="/images/load.gif">
                        </span>
                    </td>
                </tr>
            </tbody>
            </table>
        </div>
</div>
 </div>
</div>

